home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / inkscape < prev    next >
Encoding:
Text File  |  2010-03-12  |  902 b   |  26 lines

  1. # inkscape(1) completion 
  2. # put this file in /etc/bash_completion.d/ 
  3. # allali@univ-mlv.fr
  4.  
  5. have inkscape &&
  6. _inkscape()
  7. {
  8.         local cur
  9.  
  10.         COMPREPLY=()
  11.         cur=${COMP_WORDS[COMP_CWORD]}
  12.  
  13.         if [[ "$cur" == -* ]]; then
  14.                 COMPREPLY=( $( compgen -W '-? --help --usage -V --version \
  15.             -z --without-gui -g --with-gui -f --file= -p --print= \
  16.             -e --export-png= -d --export-dpi= -a --export-area= \
  17.             -w --export-width= -h --export-height= -i --export-id= \
  18.             -j --export-id-only  -t --export-use-hints -b --export-background= \
  19.             -y --export-background-opacity= -l --export-plain-svg= -s --slideshow' -- $cur ) ) 
  20.         else
  21.                 _filedir '@(ai|ani|bmp|cur|dia|eps|gif|ggr|ico|jpe|jpeg|jpg|pbm|pcx|pdf|pgm|png|ppm|pnm|ps|ras|sk|svg|svgz|targa|tga|tif|tiff|txt|wbmp|wmf|xbm|xpm)'
  22.         fi
  23.  
  24. }
  25. [ "${have:-}" ] && complete -F _inkscape $filenames inkscape
  26.